import pages from "../management-system/components/Pages.vue";

export namespace sys {

    export class WindowLabel {
        public path: string
        public title: string
        public windowType: number
        public check: boolean

        constructor(path: string, title: string, type: number, check: boolean) {
            this.path = path
            this.title = title
            this.windowType = type
            this.check = check
        }
    }


    export class NotifyMessage {
        public type: string
        public title: string
        public dangerouslyUseHTMLString: boolean
        public message: string
        public position: string
    }

    // 请求数据解析 接口
    export interface Result<T> {
        code: string  // 业务状态码
        msg: string   // 附加消息内容
        data: T       // 响应数据
        err: string   // 错误消息
    }

    export class Empty{
        id:number
        pid:number
        status:boolean
        path:string
        remark:string
        title:string
        icon:string
        name:string
        component:string
    }

    export class MenuEmpty{
        empty:Empty
        children:MenuEmpty[]
    }

    // 功能路由
    export class FuncRouter{
        id:number
        method:string   // 请求类型
        name:string     // 功能名称
        path:string     // 请求路径
        status:boolean  // 功能状态
    }

    export class Role{
        id:number
        name:string
        orgId:number
        roleKey:string
    }
}